package miracle.joker.design.factory_method;

/*
 * 具体工厂
 * */
public class DogFactory implements AnimalFactory{
    @Override
    public Animal createAnimal() {
        return new Dog();
    }

    @Override
    public Animal createAnimal(String name) {
        return new Dog(name);
    }
}
